package com.runssnail.demo.spring.web.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by zhengwei on 2016/1/28.
 */
@Controller
public class IndexAction {

    @RequestMapping("index")
    public void index(HttpServletRequest request) {
        HttpSession session = request.getSession();
        System.out.println(session.getAttribute("hello"));
    }
}
